from django.contrib import admin
from .models import BlogCategory,BlogComment,BlogDetail
# Register your models here.

class BlogCategoryAdmin(admin.ModelAdmin):
    list_display = ['name']

class BlogDetailAdmin(admin.ModelAdmin):
    list_display = ['title','content','pub_time','category','author']

class BlogCommentAdmin(admin.ModelAdmin):
    list_display = ['content','pub_time','blog','author']

admin.site.register(BlogCategory,BlogCategoryAdmin)
admin.site.register(BlogDetail,BlogDetailAdmin)
admin.site.register(BlogComment,BlogCommentAdmin)